package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.SysPermission;
import com.easy.common.bean.SysRole;
import com.easy.common.bean.SysUser;

import java.util.List;

public interface IUserService {

    public SysUser insert(SysUser sysUser);

    public SysUser update(SysUser sysUser);

    public int delete(Integer id);

    public SysUser getById(Integer id);

    IPage<SysUser> getListByPage(IPage page, SysUser sysUser);

    List<SysUser> getList(SysUser sysUser);

    int setStatus(Integer id);

    SysUser assignRole(SysUser sysUser);

    int assignPermission(SysRole sysRole, SysPermission sysPermission);

    SysUser getByUsername(String username);
}
